﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F39 RID: 3897
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicGetInfo : IMessage<RogueMagicGetInfo>, IMessage, IEquatable<RogueMagicGetInfo>, IDeepCloneable<RogueMagicGetInfo>, IBufferMessage
	{
		// Token: 0x17003187 RID: 12679
		// (get) Token: 0x0600AEE8 RID: 44776 RVA: 0x001D94FD File Offset: 0x001D76FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicGetInfo> Parser
		{
			get
			{
				return RogueMagicGetInfo._parser;
			}
		}

		// Token: 0x17003188 RID: 12680
		// (get) Token: 0x0600AEE9 RID: 44777 RVA: 0x001D9504 File Offset: 0x001D7704
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicGetInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003189 RID: 12681
		// (get) Token: 0x0600AEEA RID: 44778 RVA: 0x001D9516 File Offset: 0x001D7716
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicGetInfo.Descriptor;
			}
		}

		// Token: 0x0600AEEB RID: 44779 RVA: 0x001D951D File Offset: 0x001D771D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGetInfo()
		{
		}

		// Token: 0x0600AEEC RID: 44780 RVA: 0x001D955C File Offset: 0x001D775C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGetInfo(RogueMagicGetInfo other) : this()
		{
			this.unlockStyleTypeList_ = other.unlockStyleTypeList_.Clone();
			this.storyInfo_ = ((other.storyInfo_ != null) ? other.storyInfo_.Clone() : null);
			this.rogueMagicUnitInfoList_ = other.rogueMagicUnitInfoList_.Clone();
			this.rogueTournAreaInfo_ = other.rogueTournAreaInfo_.Clone();
			this.rogueMagicTalentInfo_ = ((other.rogueMagicTalentInfo_ != null) ? other.rogueMagicTalentInfo_.Clone() : null);
			this.rogueMagicScepterInfoList_ = other.rogueMagicScepterInfoList_.Clone();
			this.rogueTournDifficultyInfo_ = other.rogueTournDifficultyInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AEED RID: 44781 RVA: 0x001D960D File Offset: 0x001D780D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGetInfo Clone()
		{
			return new RogueMagicGetInfo(this);
		}

		// Token: 0x1700318A RID: 12682
		// (get) Token: 0x0600AEEE RID: 44782 RVA: 0x001D9615 File Offset: 0x001D7815
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockStyleTypeList
		{
			get
			{
				return this.unlockStyleTypeList_;
			}
		}

		// Token: 0x1700318B RID: 12683
		// (get) Token: 0x0600AEEF RID: 44783 RVA: 0x001D961D File Offset: 0x001D781D
		// (set) Token: 0x0600AEF0 RID: 44784 RVA: 0x001D9625 File Offset: 0x001D7825
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicStoryInfo StoryInfo
		{
			get
			{
				return this.storyInfo_;
			}
			set
			{
				this.storyInfo_ = value;
			}
		}

		// Token: 0x1700318C RID: 12684
		// (get) Token: 0x0600AEF1 RID: 44785 RVA: 0x001D962E File Offset: 0x001D782E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueMagicUnitInfo> RogueMagicUnitInfoList
		{
			get
			{
				return this.rogueMagicUnitInfoList_;
			}
		}

		// Token: 0x1700318D RID: 12685
		// (get) Token: 0x0600AEF2 RID: 44786 RVA: 0x001D9636 File Offset: 0x001D7836
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueMagicAreaInfo> RogueTournAreaInfo
		{
			get
			{
				return this.rogueTournAreaInfo_;
			}
		}

		// Token: 0x1700318E RID: 12686
		// (get) Token: 0x0600AEF3 RID: 44787 RVA: 0x001D963E File Offset: 0x001D783E
		// (set) Token: 0x0600AEF4 RID: 44788 RVA: 0x001D9646 File Offset: 0x001D7846
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicTalentInfo RogueMagicTalentInfo
		{
			get
			{
				return this.rogueMagicTalentInfo_;
			}
			set
			{
				this.rogueMagicTalentInfo_ = value;
			}
		}

		// Token: 0x1700318F RID: 12687
		// (get) Token: 0x0600AEF5 RID: 44789 RVA: 0x001D964F File Offset: 0x001D784F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueMagicScepterInfo> RogueMagicScepterInfoList
		{
			get
			{
				return this.rogueMagicScepterInfoList_;
			}
		}

		// Token: 0x17003190 RID: 12688
		// (get) Token: 0x0600AEF6 RID: 44790 RVA: 0x001D9657 File Offset: 0x001D7857
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueMagicDifficultyInfo> RogueTournDifficultyInfo
		{
			get
			{
				return this.rogueTournDifficultyInfo_;
			}
		}

		// Token: 0x0600AEF7 RID: 44791 RVA: 0x001D965F File Offset: 0x001D785F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicGetInfo);
		}

		// Token: 0x0600AEF8 RID: 44792 RVA: 0x001D9670 File Offset: 0x001D7870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicGetInfo other)
		{
			return other != null && (other == this || (this.unlockStyleTypeList_.Equals(other.unlockStyleTypeList_) && object.Equals(this.StoryInfo, other.StoryInfo) && this.rogueMagicUnitInfoList_.Equals(other.rogueMagicUnitInfoList_) && this.rogueTournAreaInfo_.Equals(other.rogueTournAreaInfo_) && object.Equals(this.RogueMagicTalentInfo, other.RogueMagicTalentInfo) && this.rogueMagicScepterInfoList_.Equals(other.rogueMagicScepterInfoList_) && this.rogueTournDifficultyInfo_.Equals(other.rogueTournDifficultyInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AEF9 RID: 44793 RVA: 0x001D972C File Offset: 0x001D792C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.unlockStyleTypeList_.GetHashCode();
			if (this.storyInfo_ != null)
			{
				num ^= this.StoryInfo.GetHashCode();
			}
			num ^= this.rogueMagicUnitInfoList_.GetHashCode();
			num ^= this.rogueTournAreaInfo_.GetHashCode();
			if (this.rogueMagicTalentInfo_ != null)
			{
				num ^= this.RogueMagicTalentInfo.GetHashCode();
			}
			num ^= this.rogueMagicScepterInfoList_.GetHashCode();
			num ^= this.rogueTournDifficultyInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AEFA RID: 44794 RVA: 0x001D97C4 File Offset: 0x001D79C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AEFB RID: 44795 RVA: 0x001D97CC File Offset: 0x001D79CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AEFC RID: 44796 RVA: 0x001D97D8 File Offset: 0x001D79D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.rogueMagicScepterInfoList_.WriteTo(ref output, RogueMagicGetInfo._repeated_rogueMagicScepterInfoList_codec);
			if (this.rogueMagicTalentInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.RogueMagicTalentInfo);
			}
			this.rogueTournDifficultyInfo_.WriteTo(ref output, RogueMagicGetInfo._repeated_rogueTournDifficultyInfo_codec);
			this.rogueTournAreaInfo_.WriteTo(ref output, RogueMagicGetInfo._repeated_rogueTournAreaInfo_codec);
			if (this.storyInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.StoryInfo);
			}
			this.rogueMagicUnitInfoList_.WriteTo(ref output, RogueMagicGetInfo._repeated_rogueMagicUnitInfoList_codec);
			this.unlockStyleTypeList_.WriteTo(ref output, RogueMagicGetInfo._repeated_unlockStyleTypeList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AEFD RID: 44797 RVA: 0x001D9888 File Offset: 0x001D7A88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.unlockStyleTypeList_.CalculateSize(RogueMagicGetInfo._repeated_unlockStyleTypeList_codec);
			if (this.storyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StoryInfo);
			}
			num += this.rogueMagicUnitInfoList_.CalculateSize(RogueMagicGetInfo._repeated_rogueMagicUnitInfoList_codec);
			num += this.rogueTournAreaInfo_.CalculateSize(RogueMagicGetInfo._repeated_rogueTournAreaInfo_codec);
			if (this.rogueMagicTalentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueMagicTalentInfo);
			}
			num += this.rogueMagicScepterInfoList_.CalculateSize(RogueMagicGetInfo._repeated_rogueMagicScepterInfoList_codec);
			num += this.rogueTournDifficultyInfo_.CalculateSize(RogueMagicGetInfo._repeated_rogueTournDifficultyInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AEFE RID: 44798 RVA: 0x001D9940 File Offset: 0x001D7B40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicGetInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.unlockStyleTypeList_.Add(other.unlockStyleTypeList_);
			if (other.storyInfo_ != null)
			{
				if (this.storyInfo_ == null)
				{
					this.StoryInfo = new RogueMagicStoryInfo();
				}
				this.StoryInfo.MergeFrom(other.StoryInfo);
			}
			this.rogueMagicUnitInfoList_.Add(other.rogueMagicUnitInfoList_);
			this.rogueTournAreaInfo_.Add(other.rogueTournAreaInfo_);
			if (other.rogueMagicTalentInfo_ != null)
			{
				if (this.rogueMagicTalentInfo_ == null)
				{
					this.RogueMagicTalentInfo = new RogueMagicTalentInfo();
				}
				this.RogueMagicTalentInfo.MergeFrom(other.RogueMagicTalentInfo);
			}
			this.rogueMagicScepterInfoList_.Add(other.rogueMagicScepterInfoList_);
			this.rogueTournDifficultyInfo_.Add(other.rogueTournDifficultyInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AEFF RID: 44799 RVA: 0x001D9A15 File Offset: 0x001D7C15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AF00 RID: 44800 RVA: 0x001D9A20 File Offset: 0x001D7C20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 74U)
				{
					if (num <= 50U)
					{
						if (num == 26U)
						{
							this.rogueMagicScepterInfoList_.AddEntriesFrom(ref input, RogueMagicGetInfo._repeated_rogueMagicScepterInfoList_codec);
							continue;
						}
						if (num == 50U)
						{
							if (this.rogueMagicTalentInfo_ == null)
							{
								this.RogueMagicTalentInfo = new RogueMagicTalentInfo();
							}
							input.ReadMessage(this.RogueMagicTalentInfo);
							continue;
						}
					}
					else
					{
						if (num == 58U)
						{
							this.rogueTournDifficultyInfo_.AddEntriesFrom(ref input, RogueMagicGetInfo._repeated_rogueTournDifficultyInfo_codec);
							continue;
						}
						if (num == 74U)
						{
							this.rogueTournAreaInfo_.AddEntriesFrom(ref input, RogueMagicGetInfo._repeated_rogueTournAreaInfo_codec);
							continue;
						}
					}
				}
				else if (num <= 98U)
				{
					if (num == 82U)
					{
						if (this.storyInfo_ == null)
						{
							this.StoryInfo = new RogueMagicStoryInfo();
						}
						input.ReadMessage(this.StoryInfo);
						continue;
					}
					if (num == 98U)
					{
						this.rogueMagicUnitInfoList_.AddEntriesFrom(ref input, RogueMagicGetInfo._repeated_rogueMagicUnitInfoList_codec);
						continue;
					}
				}
				else if (num == 104U || num == 106U)
				{
					this.unlockStyleTypeList_.AddEntriesFrom(ref input, RogueMagicGetInfo._repeated_unlockStyleTypeList_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040046E8 RID: 18152
		private static readonly MessageParser<RogueMagicGetInfo> _parser = new MessageParser<RogueMagicGetInfo>(() => new RogueMagicGetInfo());

		// Token: 0x040046E9 RID: 18153
		private UnknownFieldSet _unknownFields;

		// Token: 0x040046EA RID: 18154
		public const int UnlockStyleTypeListFieldNumber = 13;

		// Token: 0x040046EB RID: 18155
		private static readonly FieldCodec<uint> _repeated_unlockStyleTypeList_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x040046EC RID: 18156
		private readonly RepeatedField<uint> unlockStyleTypeList_ = new RepeatedField<uint>();

		// Token: 0x040046ED RID: 18157
		public const int StoryInfoFieldNumber = 10;

		// Token: 0x040046EE RID: 18158
		private RogueMagicStoryInfo storyInfo_;

		// Token: 0x040046EF RID: 18159
		public const int RogueMagicUnitInfoListFieldNumber = 12;

		// Token: 0x040046F0 RID: 18160
		private static readonly FieldCodec<RogueMagicUnitInfo> _repeated_rogueMagicUnitInfoList_codec = FieldCodec.ForMessage<RogueMagicUnitInfo>(98U, RogueMagicUnitInfo.Parser);

		// Token: 0x040046F1 RID: 18161
		private readonly RepeatedField<RogueMagicUnitInfo> rogueMagicUnitInfoList_ = new RepeatedField<RogueMagicUnitInfo>();

		// Token: 0x040046F2 RID: 18162
		public const int RogueTournAreaInfoFieldNumber = 9;

		// Token: 0x040046F3 RID: 18163
		private static readonly FieldCodec<RogueMagicAreaInfo> _repeated_rogueTournAreaInfo_codec = FieldCodec.ForMessage<RogueMagicAreaInfo>(74U, RogueMagicAreaInfo.Parser);

		// Token: 0x040046F4 RID: 18164
		private readonly RepeatedField<RogueMagicAreaInfo> rogueTournAreaInfo_ = new RepeatedField<RogueMagicAreaInfo>();

		// Token: 0x040046F5 RID: 18165
		public const int RogueMagicTalentInfoFieldNumber = 6;

		// Token: 0x040046F6 RID: 18166
		private RogueMagicTalentInfo rogueMagicTalentInfo_;

		// Token: 0x040046F7 RID: 18167
		public const int RogueMagicScepterInfoListFieldNumber = 3;

		// Token: 0x040046F8 RID: 18168
		private static readonly FieldCodec<RogueMagicScepterInfo> _repeated_rogueMagicScepterInfoList_codec = FieldCodec.ForMessage<RogueMagicScepterInfo>(26U, RogueMagicScepterInfo.Parser);

		// Token: 0x040046F9 RID: 18169
		private readonly RepeatedField<RogueMagicScepterInfo> rogueMagicScepterInfoList_ = new RepeatedField<RogueMagicScepterInfo>();

		// Token: 0x040046FA RID: 18170
		public const int RogueTournDifficultyInfoFieldNumber = 7;

		// Token: 0x040046FB RID: 18171
		private static readonly FieldCodec<RogueMagicDifficultyInfo> _repeated_rogueTournDifficultyInfo_codec = FieldCodec.ForMessage<RogueMagicDifficultyInfo>(58U, RogueMagicDifficultyInfo.Parser);

		// Token: 0x040046FC RID: 18172
		private readonly RepeatedField<RogueMagicDifficultyInfo> rogueTournDifficultyInfo_ = new RepeatedField<RogueMagicDifficultyInfo>();
	}
}
